import request from './request'

const baseURL = import.meta.env.VITE_API_URL

export const charactersCommentAPI = { 
    createComment(data) { 
        return request.post(baseURL + '/character_comment', { 
            content: data.content,
            characterId: data.characterId
        })
    },
    deleteComment(commentId) { 
        return request.delete(baseURL + '/character_comment/' + commentId)
    },
    getCommentById(commentId) { 
        return request.get(baseURL + '/character_comment/' + commentId)
    },
    getCommentsByCharacterId(characterId) {
        return request.get(baseURL + '/character_comment/character/' + characterId)
    }
}